import request from '@/utils/request'

// 添加检查人员
export const addInspector = (data) => {
  return request({
    method: 'post',
    url: '/inspection/user/add',
    data,
  })
}

// 查询检查人员列人员
export const getInspectorList = (params) => {
  return request({
    method: 'get',
    url: '/inspection/user/query',
    params,
  })
}

// 获取检查人员详情
export const getInspectorDetail = (params) => {
  return request({
    method: 'get',
    url: '/inspection/user/get',
    params,
  })
}

// 修改检查人员
export const updateInspector = (data) => {
  return request({
    method: 'put',
    url: `/inspection/user/update/${data.pkid}`,
    data,
  })
}

// 删除检查人员
export const deleteInspector = (params) => {
  return request({
    method: 'delete',
    url: `/inspection/user/delete`,
    params,
  })
}
